package com.gitee.zycra.union.api.common.model;

import com.gitee.zycra.jdbc.annotation.Column;
import com.gitee.zycra.jdbc.annotation.ID;
import com.gitee.zycra.jdbc.annotation.Table;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author zycra
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@Table("machine_id")
public class MachineId {

    /**
     * 主键
     */
    @ID
    @Column("id")
    private Integer id;

    /**
     * 创建时间
     */
    @Column("create_time")
    private LocalDateTime createTime;

    /**
     * 节点IP
     */
    @Column("node_ip")
    private String nodeIp;

    /**
     * 应用名称
     */
    @Column("application_name")
    private String applicationName;
}
